package com.px.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.px.system.mapper.SolutionSubclassMapper;
import com.px.system.domain.SolutionSubclass;
import com.px.system.service.ISolutionSubclassService;

/**
 * 解决方案小类Service业务层处理
 * 
 * @author 品讯科技
 * @date 2024-08
 */
@Service
public class SolutionSubclassServiceImpl implements ISolutionSubclassService 
{
    @Autowired
    private SolutionSubclassMapper solutionSubclassMapper;

    /**
     * 查询解决方案小类
     * 
     * @param id 解决方案小类主键
     * @return 解决方案小类
     */
    @Override
    public SolutionSubclass selectSolutionSubclassById(Long id)
    {
        return solutionSubclassMapper.selectSolutionSubclassById(id);
    }

    /**
     * 查询解决方案小类列表
     * 
     * @param solutionSubclass 解决方案小类
     * @return 解决方案小类
     */
    @Override
    public List<SolutionSubclass> selectSolutionSubclassList(SolutionSubclass solutionSubclass)
    {
        return solutionSubclassMapper.selectSolutionSubclassList(solutionSubclass);
    }

    /**
     * 新增解决方案小类
     * 
     * @param solutionSubclass 解决方案小类
     * @return 结果
     */
    @Override
    public int insertSolutionSubclass(SolutionSubclass solutionSubclass)
    {
        return solutionSubclassMapper.insertSolutionSubclass(solutionSubclass);
    }

    /**
     * 修改解决方案小类
     * 
     * @param solutionSubclass 解决方案小类
     * @return 结果
     */
    @Override
    public int updateSolutionSubclass(SolutionSubclass solutionSubclass)
    {
        return solutionSubclassMapper.updateSolutionSubclass(solutionSubclass);
    }

    /**
     * 批量删除解决方案小类
     * 
     * @param ids 需要删除的解决方案小类主键
     * @return 结果
     */
    @Override
    public int deleteSolutionSubclassByIds(Long[] ids)
    {
        return solutionSubclassMapper.deleteSolutionSubclassByIds(ids);
    }

    /**
     * 删除解决方案小类信息
     * 
     * @param id 解决方案小类主键
     * @return 结果
     */
    @Override
    public int deleteSolutionSubclassById(Long id)
    {
        return solutionSubclassMapper.deleteSolutionSubclassById(id);
    }
}
